Add Inital sign in functionality to the worker
moved login function to dedicated worker message handler