set autofocus username input
Added middleware to check user admin credentials