Added form parameters to displayAlert so form fields clear upon successful registration. Also removed hard path for redirect to welcome page after login.