Register, login, and functions for users and user role classes