Allow user to be logged in straight after signing up
Adding some comments and tidying up whitesapce