Fix up the login resource and make it login