admin login function and draft install