added login dba function