Finished. It is good to go! Can add a little more stuff to it but the basic functionality is good
Fixed an issue where the formhash changes from time to time during login