fix save functionality and add create user