Fixed incorrect select query
Added indexing on USER_INFO.username
Added email validatator to ensure email addresses are unique