Porting loginAs feature on jspui
Merge with last PR for reset password
Porting loginAs feature on JSPUI