Removed now unnecessary todo comment
Abstracted code to check whether or not a user exists.