add login mechanism combining rails and angular