use ruby instead php for user authentication