moved login code to a run block and updated styles