isUser method has been implemented to check if user is n database