Added login rules