added login and registeration