user can register
user is redirected to home page and sees flash message upon registering successfully