Changes to login controller