Login moved to ORM database layer

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