fixed bug where signup did not redirect to main