return usertype when login is successful