Updated validate and login methods

Now includes session storage, more secure forms that use $_POST[].