updated register page
renamed testpage to index
renamed testpage to index, added support for adding new user and logging in
added debugging message
removed username as a return value for login func