made authorize method to get name and token
added a testing.rb page for testing methods