make loginview return id