refactor login frontend