Implementing User Authentication in Flask Applications