fixed db connection
added loginProcess