moved login code to single html template