I've currently found out, that application throws Internal Server Error on create new user due to undefined list of sessions (for non-existing user).
This PR only adds condition to render sessions only for already existing users on edit_user.html template.
I've currently found out, that application throws Internal Server Error on create new user due to undefined list of sessions (for non-existing user). This PR only adds condition to render sessions only for already existing users on edit_user.html template.