Sign in/out

User sign_in/out function.
use update_attributes instead of update_attribute