Added remember cookie
Cookies now work nicer
Moved alerts to it's own function