fix some resource and loginscreen

fix login screen behaviour when there is no postgresql server running