Flask Login not getting authenticated

Hello,

I have this Login and Registration Form made with Flask,

however, whenever I login and enter the correct credentials the user is not getting authenticated

here is my code