Fixed login page javascripting