A working copy of user management

Need to working on connect to database now.