Refactor admin and add login screen