refactor login module to packerjs 0.0.5