preparing server side login with client side notification using toastr