Login JS modified