If someone has the use of the mark, as well as a pending application or has a registered trademark, before you filing the request for registering it they do have priority.