Added toastr functionality and hides login form on successfull login