Question: How can I write C-program which accepts two strings from the user and prints a string which is the result of the concatenation of the first half of the two strings. For odd length strings, extra character goes in the first half of the string.

I have this so far but am confused on the splitting in half part...

```
printf("Please enter your first word.\n"); //Asks for first string

scanf("%s",&c); //Takes first string

printf("Please enter your second word.\n"); //Asks for second string

scanf("%s",&d); //Takes second string

strcat(c,d); //Combines both strings

```

Answer: 
Use input validation as bellow

```
'id' => 'exists:users,id'

```

Then you can do

```
return redirect('users')->withError($validator)

```

In the login form you can display the email not found message by 

```
$errors->first('id')

```
```
redirect()->route('users')->with('error', "I have a error");

Session::get('error')

```