Finally got user management working! (Marginally)