missing cgi script/programs extensions
reworked login program

it now generates the login page and checks if a session already exists
extra error message, small style fix