Fixing bug in user controller

fixes #74