Implementing DB checks for registered emails and usernames