Login and settings moved to ORM

Signed-off-by: plamen911 <plamen@lynxlake.org>
Bug fixes

Signed-off-by: plamen911 <plamen@lynxlake.org>