use rails style helper instead of hardcore code
finish sign in and out
finish user update actions