Added authlogic for authentication