modified user controller, fixed new user bug