Commented login and register controllers