login and redgistration were implemented on backend