Added login and register activites (again).