rewrite login/forget with angular