Completed programmatic login for new registration + redirection to home
page