Creating and deleting entities for login