upgrades to login page to redirect to pages according to user roles//register page name changed to registerTeacher