added the login inside the helper