adding admin and fixing up the login system