Fixing cucumber authentication code