fixed the bug for signup and also fixed the redirection for signup.