Updated actionLogin to use UserIdentity, created by the wonderful Zander.