added login and registering basic functionality