Fixed a problem when clicking login link on the register page.
Added alphanumeric validation for username.