Modified the login bean to check for null values

Change-Id: I3c3da9c3f4550cd204668b278c16744eceb825ad
Signed-off-by: Dieter Scholz <disc@code2bytes.org>