```
if @user.register
  redirect
else
  #handle invalid user
end
```