signin working and moves js file to own folder