Minor changes to login action