user model and controller working