fixed log in to change url with pushstate