login and registering working 100%