changed table/users/username to email and added unique constraint