Refactored login - moved to DbFuncs