In your source code there is $_POST["user_name"] and $_POST["username"] is used. I am guessing
username
is incorrect. But, check with your form.
Using this way may not be the best method. Try using mysqli_stmt related functions, better yet use the class.
It looks like you are starting your session in the middle of your page, your configuration will alliw this, but may not be the best practice.
Using @ at your source is bad idea and can lead to disastrous situation. DO NOT USE THEM