* added validation and error handeling to login and register functions.
* They are now displaying a error message if u enter wrong username or leave it blank.
* The index site restricts the user to a secure site at first so u do not have to click login twice to make it secure.