Problem fixed initializing login javascript