--Fixed admin login error.
--Added basic access control for better security.(Not role based yet)
--Change better File logic.
--minor Bugs fixed

Signed-off-by: qiansen1386 <qiansen1386@gmail.com>