add check current_user.nil?
add before_action
refactor user verification
Merge pull request #13 from matthewdu/fix/null-current_user

add check current_user.nil?