We are going to look through inside our application and improve it.
So let's see where we need to improve.
The first one is when I click on this icon to update or to render the form for update.
Let's have a look.
So when you see this kind of message, it simply means that we are using a variable in a template,
but we are not passing in that.
So let's have a look where we are wrangling the form is called the User Details template.
So let's look at the user controller and let's have a look.
And this is a controller that renders a single user and you can see that we are passing in the user,
but we are not passing in the error property.
So by default we need to make use of error as empty and this one will fix that.
So when I refresh it, let's have a look.
And you can see that it worked fine.
The next one is we need to display the error in case we have one.
So I'm going to copy this one and then paste it here.
But for the message, we are going to use this message as error.
Dot message and let's remove this one.
Now we have improved that one.
The next one going to be the log in.
Let's look out.
And let me click on Look In.
You can see that I'm not providing the email or the password and I got this message.
So let's go ahead and then render the template.
So let's go to use this controller and here we go.
Let's look at the log in functionality, which is this, and you can see that we are returning the JSON
data.
So we are going to use the same template here.
And I'll add this message as email and passwords are required.
So let me remove this one.
Now, when I try to look in with empty data, let's have a look and we have it as email and password
fields are required.
All right.
It worked fine.
The next video, let's go ahead and then populate the user's post.