Added admin folder inside js folder and added login functions.