# Validation problems.

**URL:** <https://discuss.rubyonrails.org/t/validation-problems/6938>\
**Category:** rubyonrails-talk\
**Created:** [January 9, 2007, 8:05pm UTC](https://discuss.rubyonrails.org/t/validation-problems/6938 "2007-01-09T20:05:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcel\_Buchholz](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@Marcel\_Buchholz](https://discuss.rubyonrails.org/u/Marcel_Buchholz)\
**Post date:** [January 9, 2007, 8:05pm UTC](https://discuss.rubyonrails.org/t/validation-problems/6938/1 "2007-01-09T20:05:02Z")

</div>

Hi there!

I have a problem with validations: My user model allways validates the presence of login, password and password\_confirmation - it also does this if I use update\_attributes to update a single attribute.

So for example updating “username” fails, because I of course do NOT provide password, password\_confirmation etc. when only updating one attribute.

So: How can I make stuff like “username” updateable by update\_attributes and still make sure that login, password etc have to be validaten when I

do not change a single attribute but the entire record?
