added user registration form, flash messages