fixed directory hirachie loader bug.

+Admin and normal site can handle now the loader define ROOT const
+AJAX on login
#error handling on login