added login mechanism with separate pages based on login info