login.php: Redirect to homepage if no referrer is set

Issue #97.
login.html: Add name values to login screen
post.php: Add 'Action' to PostVariables
login.php: Add registration attempt