Added login/signup functionality.