Added activity redirection on login/register button presses.