Working login and register, updated webpages