Added code for login and registration pages