Added ability to login and register and other important stuff