Deleting old cookies before logging into rails, adding login code to main ViewController.