Add more to admin side. Add login function and util functions