Block unauthorized user log in + minor fixes

Users in the database can log in, (using fake password for debugging
purposes) Real-time log in will be added when server-side encryption is
ready.
Also fixed temporary port number changes that were made for debugging
purposes.