Adding user type to login functionality