improve code style

replace hashrocket with colon
replace if-elsif-else with case
replace user authtications dependent
update code style for User.find_or_create_from_oauth