Final Commit

in this commit the log in function is improved and completed, so is
communication with webUI.