added login/registeration backend code