Signup and sign in popup js fixes