Updated title
conditionally show 'error' info if flash msg exists
Formatting
Handled duplicate user name
conditionally show 'error' info if flash msg exists
Updated for log in