Sign in/out functionality and alert session & template

Initial build of the sign in/out system as well as a basic alert
display. Finished tidying up the regisration validation too.