Working with model devise