added a space
error message
created shared error message for user
error message styling
if @user.save, redirect_to @user profile
adding contents of flash variable to site layout
display success message of flash variable