Browser side login in angular