added .require to customer params
added signed cookies
changed logic for authentication line 6-8
added has_secure_password
changed password text field param to :password_digest
added password_digest to password text field