Reverted deletion of login code