Implements frontend registration, login, and logout