added: error prompts for registration fields and fixed return redirect on successful registration.