added basic authentication, registration yet to come