Added create users and fixed lots of errors