adding login and register

added login and register functionality. Introduced setting table for
saving dynamic settings
adding login and registeration