Refactor create authentications controller