Fixed Rails error, got authentication working.