Critical fixes: for method LoginUser, for all methods