Login stuff

Password confirmation
Automatic login after register
Working flash messages