adding login and register function

DATABASE