added the login page, api and user system