Commit WIP BROKEN login functions.